﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace UserLoging.Models
{
    public class User
    {
        [Key]
        public Guid UserId { get; set; }
        [Required]
        [MaxLength(20)]
        public string UserName { get; set; }
        [Required]
        [MaxLength(20)]
        [MinLength(6)]
        public string password { get; set; }
        public string number { get; set; }
        public Permission Permission { get; set; }
        public DateTime CreateTime { get; set; }
    }
}
